Add documents for `validate()`

`validate()` method is undocumented, so I wrote the documentation.