Validate doc