Write categories controller
Add categories function to user