loggedIn functionality working with nconf reading config.json