Replace accounts.js events with login.js functions