when user click add button twice, from get submitted twice with same dat
You can add a class to your form and your submit button and use jquery:
$(function() { // prevent the submit button to be pressed twice $(".createForm").submit(function() { $(this).find('.submit').attr('disabled', true); $(this).find('.submit').text('Sending, please wait...'); }); })