This is wrong approach. You should change the name column to number, and also change in your server to use number instead.
But if you really want to use name, and limit it only to numbers, then you need to add following line, into system/pages/account/create
Before:
// email...