I fixed my silly bug. I apparently distributed the old code with bugs in it while my sever ran the fixed version.
While fixing the proc with the wrong name, I also found two more bugs. I took that code and applied it to my server which does validate. Thanks for the feedback. Hopefully I will have more time to work on it to make it better after the porting is done.