Fixed document validation to use schema 'document' property