The problem can be a bad switches and/or wires on the door latch or a bad control board.
The switches have to be tested with an ohmmeter in accordance with the wiring diagram
. Also the door latch should be tested for proper engagement of the switches in both open and lacked positions.
If there is nothing wrong with the door latch, the control board has to be replaced.
- The door latch Part number: AP4008652
- The control board Part number: AP4396588
Here is the Service manual
Here are the breakdown diagrams and Replacement parts for MAYTAG PGR5710BDW Range - S/c F/s Gas | AppliancePartsPros.com
P.S. You probably used Mozilla Firefox as a browser. There are a lot of well known bugs with this browser over the Internet. You would not have such problems with IE or Chrome.