Improve bad login handling.