In this example, we use .needs-validation, which will add the validation effect AFTER the form has been submitting (if there's anything missing).
.needs-validation
Try to submit this form before filling out the input fields, to see the effect.