add the part of logout