refactored authentication filters.