How to properly integrate middleware without ending up in a "TOO MANY REDIRECTS" issue - Filament