validate email and state