CategoryController flash messages fix