used OptionsResolver to handle validator options