validate declared events in layers