fixed multithreading login issues