Remove unused method in login.js