handles un-logged-in users on homepage for part A of #48