Fix redirect after login