Update validation.rst

updated deprecated example