Fix console errors if not logged in