update to login.js