Not removing event listener from 'login.done' in ensure that the activity indicator is hidden when the login fail s for the second time.