fixed logging in staying on screen