Add required validation for form inputs.