simplify exercise: complex form validation