added some basic error handling for existing users trying to register