fixed bug with app.js on logging in