updated logout and client secrets code