added validation of email format