Bugfix: the login method returned a NullPointerException when an invalid username is provided.