Summary
The current registration form only includes a single password field. Adding a Confirm Password input will improve user experience and prevent accidental password mismatches during account creation.
Screenshot
Current registration page (only a single password field is available):
Proposed Changes
Frontend
- Add a
Confirm Password input below the existing password field.
- Add a show/hide toggle similar to the main password field.
- Display real-time feedback:
- ✅ Passwords match
- ❌ Passwords do not match
- Prevent form submission if the passwords differ.
- Disable the Create Account button while validation fails.
Backend
- Accept
confirmPassword in the registration request.
- Validate that
password === confirmPassword.
- Return a clear error message when validation fails.
Benefits
- Improves user experience by reducing registration mistakes.
- Adds an additional layer of validation beyond the client side.
- Aligns with common authentication practices used in modern applications.
Acceptance Criteria
Summary
The current registration form only includes a single password field. Adding a Confirm Password input will improve user experience and prevent accidental password mismatches during account creation.
Screenshot
Current registration page (only a single password field is available):
Proposed Changes
Frontend
Confirm Passwordinput below the existing password field.Backend
confirmPasswordin the registration request.password === confirmPassword.Benefits
Acceptance Criteria
confirmPasswordstate inRegister.tsx.