Add validation rules helper.