reverted login.js