resolve logout issue