Replaced default logout with local version.