You can use different validation classes to provide valuable feedback to users.
.was-validated - Added to the form to show validation messages after submission.valid-feedback - Message shown when input is valid.invalid-feedback - Message shown when input is invalidEdit the code below and click Run to see the result live.