Added new logout functionality