janel2411 / tradewise

https://tradewise-orpin.vercel.app
0 stars 0 forks source link

Fix issue #9: Update signup form validation and error handling #11

Closed janel2411 closed 1 month ago

janel2411 commented 1 month ago

Error Messages will show up and users are prevented from creating an account if their inputs for the Sign Up Form fields do not fulfill the requirements. Error messages have been styled to have a standardised appearance.

Requirements added:

  1. Email must be valid
  2. Username must contain letters & numbers
  3. Password must be 8 characters long at least, and contain at least 1 special character, letter and number

    I also added a Password Visibility button in the Password input field so users can hide and view their passwords if needed during account creation.

Account is created successfully and users will be redirected to the index page to sign in for the first time. Account details are saved successfully in the relevant areas of my database.

Closes #9