Better login error messages, fixes #151