Debug form validation issues and user input handling
Help me debug form validation issues in my application.
**Framework:** {{FRAMEWORK}}
**Form HTML:**
```html
{{FORM_HTML}}
```
**Validation code:**
```{{LANGUAGE}}
{{VALIDATION_CODE}}
```
**Validation rules:** {{RULES}}
**Input that fails incorrectly:** {{FAILING_INPUT}}
**Input that passes incorrectly:** {{PASSING_INPUT}}
**Error messages shown:** {{ERROR_MESSAGES}}
Please provide:
1. **Validation Logic Analysis**: Review validation rules
2. **Edge Case Issues**: Identify edge cases not handled
3. **Regex Problems**: Fix regex validation if used
4. **Async Validation**: Check async validation handling
5. **Fixed Validation**: Corrected validation code
6. **Error Message UX**: Improve error message clarity
7. **Security Check**: Ensure server-side validation too
8. **Testing Cases**: Comprehensive test cases for validationOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{FRAMEWORK][{FORM_HTML][{LANGUAGE][{VALIDATION_CODE][{RULES][{FAILING_INPUT][{PASSING_INPUT][{ERROR_MESSAGES]