added validation for the user's email