Fixed error where a username could be registered 2 times.
Removing unnecessary code.