The Will you described is still a valid, legal document.  A codocil is an amendment to a Will and the codocil can amend the Will to correct the name.  The testator (person whose Will this is) can acknowledge his or her signature on the codocil in the presence of witnesses.