[18] Added logout functionality