Prevent form submitting unless loading finished