Added check for routes and logbook if user is logged in