Added check for email in user registration