Tweak the login process.