added logic to find logged-in users events