Improve error logging and support handling of canceled user login request