ensures valid email to login