added validation for email field