Fixed #19327 -- Added handling of double login attempts in admin.

Pull request for https://code.djangoproject.com/ticket/19327