User bugfixes login.js