Added checking for usernames that are already taken.