Login on enter and some multithreading fixes