Submit button stucks and the form time-outs