Added validation to docs