fixing nfcring logout code