make submit a button, add required attributes to form element