fixed redirect after login