Frigidaire front loader wont lock

Our front loader intermittently locks, and starts cycle. However, sometimes it wont. I can remove power from the unit for 15-30 minutes, then plug back in and it will work. Im not sure if that’s a coincidence or it does in fact require hard reset. I’m not sure if problem is located in door lock or control board. Any suggestions?