fixed small error with logouts