Fix the app.js for login/registration.