update logout so that it is functional again