Made logout static
Made logout static