added validation for email