validation of the events based on the types of the components