add the logout functionality also