logout wait for login ajax request