How do you unlock the gym leaders door in Petalburg city in Pokemon ruby?

beat the other 4 gyms