changed regex for validation of email to the one used by angular in modules