Wait until EIP is up to autologin. Closes #5939.

An iteration on top of: #710