modified the logic of adding and running validation threads