no longer crashes after user decides to cancel the login