Clean code
Fix boundary condition error
Now check if user name used and remove thpool