adding regex support for email validation