I think this needs an else statement to take care of showing an error message that shows that the username is already taken. Right now, when using a username that already exists, there is no clear indication of what went wrong.