fix redirect on login