Added validation functionality to Topic Model