ensure logged in before going to index