fixed errors when trying to create a user with a username that was already assigned to a user in the db.