Resolves redirect after login.