Working on event registration