Fixed login.js test issue