hook up the validation (see #59)