This sounds like a hack to me, while the problem lies in the people filling out the form and not the form itself. If you prevent 10 of the same number, then people will just use 0000055555, etc. and so on.
I'd suggest placing a clear note in red telling people to enter a real tax number, and reject any forms that don't follow those instructions.