adding couchdb validation function (does nothing for now...)