WIP: Move initial login attempt to login.js.