in 1753 , the english parliament had passed the lord hardwickes marriage act , which codified that if either party to a marriage was not at least twenty-one years old , then both sets of parents had to consent to the marriage .