Bug fix in login.js view