add the method logout