validate topic_id passed