added email validation regex and tests