log out resource