Improvements to login attempt management.