trying to fix redirect after login issue