Show proper error message on login failure

[#60679398]