fix for redirect after login