basic logout implemented