added validation for email address