modified create action in categories controller