bracket validator