adding logout to the filter