How do you obtain the eighth gym badge in Pokemon Diamond and Pearl?

By beating the gym leader