How to prevent submission if spinner fields in the form are empty?