โmetadata.email is not allowed to be emptyโ When Saving Empty Profile on Aistro

๐งพ Summary:
When attempting to save the profile on Aistro (https://www.aistro.io/content/profile?locale=en) with an empty email field, an error message appears:
Request failed: 400 : {"error":""metadata.email" is not allowed to be empty"} The error message is not user-friendly and exposes backend validation details.
๐ Platform / Environment:
- Website: https://www.aistro.io/content/profile?locale=en
- Feature: Profile Editing / Account Management
- Browser: Google Chrome (latest)
- OS: Windows 10 / 11
๐งช Steps to Reproduce:
- Log in to your Aistro account.
- Navigate to your profile page: https://www.aistro.io/content/profile?locale=en.
- Clear or leave the email field empty.
- Click Save.
- Observe the error message displayed.
๐ฅ Actual Result:
- The system returns an error response:
javascript Request failed: 400 : {"error":"\"metadata.email\" is not allowed to be empty"} - The message exposes internal validation structure (
metadata.email) instead of showing a simple user-friendly error.
โ Expected Result:
- The app should prevent saving empty required fields.
- Display a clear, user-friendly message, e.g.: > โEmail address cannot be empty. Please enter a valid email.โ >
โ๏ธ Possible Cause:
- Missing frontend validation for required fields.
- Direct backend validation response being shown to the user without proper error handling or localization.
๐งฑ Severity: Medium ๐ฏ Priority: High ๐ Category: UI / Validation / API Response Handling