fix for redirecting to user profile after login