tree - form validation