added more robust email regex and invalid email test case