As a user, I want to receive error messages for invalid data so that I can fix any issues before saving, and my personal data is only viewable and editable by me.
Acceptance Criteria
- The user can see input fields such as email must be validated (e.g., correct email format).
- If invalid data is entered,the user can have an error message should appear near the problematic field.
- The user’s personal data can only be viewed and edited by the user unless an admin.
- Unauthorized access is restricted, ensuring privacy.
Task
- email format validation
- validate all other user input fields (like name, address)
- display error messages
- create access control