fixed KeyError exception when not providing a username AND password when signing in