add event validation