this function isLoggedIn is already in app/routes.js. I wonder if we should just put all the routes in there, what do you think?