Add validation rules for the main form.