Fix redirect on login.