adding validations to topic model