WCAG Success Criteriawcag-2.2-A
WCAG 3.3.1: Error Identification
WCAG 3.3.1 requires that when an input error is automatically detected, the item in error is identified and the error is described to the user in text. This ensures users with disabilities can recognize, understand, and correct mistakes when filling out forms.