Update validator.md

My working version of the code.