Fixed can't login after logout bug