fixed a null-pointer bug when username/password wasn't correct