Added userId to createEvent