post and put body validation added + mocha tests updated