validate category_id - fixes #7