Refactored validationrest adapter, changed rest api for adding itemCategories