changed category_id to categories in user model in frontend