add validation pair of keys user_id category_id