Fixed home page data fetching errors in console.log

Hide functions behind if condition `isAuthenticated`, so that errors won't show in home page console.log if user not logged in yet.