Feature improve is logged in

Multiple calls to this function resulted in multiple database calls. The isLoggedIn variable is now cached in the DIC.