added redirection when user is log out (issue #3)