Added error handling for email or username that's already been used