Suggesting we move the JS to a separate file (js/pages/login.js), since there's quite a bit here.