validate event length