filter now always redirects to /home and sets a session variable
cleaned up a little