dispose the login dialog when login successfully