Added better empty username and password checker