add an example to validate object