Fixed infinite redirects for authenticated users accessing login page.