Fixed infinite redirects when authenticated user tried to access login page.