Removed unused imports
Do not use auth filters if middleware is disabled