Clean up login.js (again)