Add a simple tree validator