bug fix to check if category exists based on slug not name