changed isMail() function so it checks with regular expression to validate an e-mail