Why is my form working on one page and not the other?