fixing bug for if you try to register a user with an existing username