prevent duplicated categories for a post