Adds function to check if a username is registered