Improved function to display error message, removed unnecessary classes
Added new template with  form to adding new category and created the  path to it, added function to check if data is already exist in db