Fix redirect on login