Small improvements to the login module.