My form hangs when I try to submit it