make dynamic hooks validate