I think it will be more easy if you can fix 5101 by its client.
Just like adding '*' in the username column and their pin code.
Just little bit code in login5.php you can make it easily.
By the way,i was make what you mean 2 min ago and it's really easy