added error messages if user tries to register with an email address that is not unique