add error handler for categories when edit category