Add check upon submission of form to ensure required fields are filled out, and prevents submission if they are not