when user click add button twice, from get submitted twice with same dat
You can use JavaScript.
Attach form.submit.disabled = true; to the onsubmit event of the form.
form.submit.disabled = true;
onsubmit
A savvy user can circumvent it, but it should prevent 99% of users from submitting twice.