How do you get pass the grunt that's blocking the door in Pokemon diamond on mt cornett?

get the 4th gym badge and then give him a pokemon... get the 4th gym badge and then give him a pokemon...