fix validation and save in cores and update category repo
fix category controller