add form settings inputs to select element after validation.
close settings after form validation.