Fixed logout bug that didn't nil previous user