fixed issues with errors when not logged in