Improved the validation algorithm to keep submit button disabled until
all required values are filled in and all fields that require validation
have been validated