Fixed login, speeded up ThreadFragment a bit as well