Fix for redirect after login