modified login.js