document validation options