Not really safe Logout functionality added - TODO: check this