Simplify logic in auth filter