Add class event validation.