add validation of request msg before posting to couchdb.