fix api error validation exception
fix category repo and api