added some functions to validate topics.