make MyValidator class