added validation for the email