Not a good situation for you. Even if they jumped in excitement on the kid, you risked having your dogs deemed dangerous. Then you would have to deal with the consequences of that. Police don't care about dogs, and people are very emotional and short fused when it comes to their children.
You need to teach a solid recall, and have your dogs do a down stay when you open the gate.