more javascript in login.js