logout properly updates status