created a script to validate emails
 changed the regex for email validation