fix redirect after login to session variable