Add documents for `validate()`