Added validation example to docs.