validate empty email and password