Some validation for the form.