Created add_category function in views.py