No need to do the same validation multiple times
Cleanup
Best used the standard library instead of creating your own threads.