got the app to log out of website when the browser closes