edit logout method in session