fixing bug in email validation regex and updating tests fixes #3546