cleanedup login.js