Worked on logout