Why does my form direct to the wrong URL?