Removed obsolete function from login.js