made sure username and password fields are filled out