updated server error handling
enforce unique email address