Replace api.logout with logout form/button in the terms and conditions widget