Redirecting to previous route after login using session variables