fix issue duplicate events when login occurred