documnt validate