Made a variable static so that it will work with the logout