extract email and expect a valid email