removed error middleware
added support json schema validation for PUT method