pass userId while creating event