Finish the basis of the submit function of the add form.