first example validateForm hook: