fixing bug on load for un-logged-in users