Check for empty username/password before sending the login request