Simple form validation.

Plus a refactor of previous form-reset.