Made changes to the CategoryController to enable adding and editing categories