I have written logout functionality