Fix odd behavior from login-redirect.