throw exception when invalid email check