allow the login to be cancelled