If the error was just that an error, then a simple contact with the Marriage Licensing office will give you the proper paper work to correct the error.
If it was intentional then it is considered fraud because you have to sign a sworn document when you apply for a marriage license then most likely it's not valid.
Call the marriage licensing office in your state.