Adding validation to the new form.