Fixed bugs where the username and password weren't case sensitive and a user can register under the same username