Adding validation errors as JSON object, if any.