Update validator.md

I corrected the method name.