implemet getEventsByUser method