login out bug fix