Include validateFunc in example