add login failure message with reason. fixes #20