Add login and logout views filter hook