Minor changes

More threading, username validation, etc