add/delete categories now check if user is logged in or not. works for both