validate docs in couchDb