ensure logged in to view dashboard page