app.loggedIn added