Currently, there is almost no validation or the validation occurs only after hitting the submit button of login/signup form for both influencers and brands.
Requirements
As soon as user enters an invalid data, the error message should be shown right away just below the input box.
Only the errors coming from backend should come when user hits submit.
For Brand SignUp form
[ ] Add Name Validation -> the check that name can't start with a number and any other relevant validations
Description
Currently, there is almost no validation or the validation occurs only after hitting the submit button of login/signup form for both influencers and brands.
Requirements
As soon as user enters an invalid data, the error message should be shown right away just below the input box. Only the errors coming from backend should come when user hits submit.
For Brand SignUp form
Generate OTP
button should be disabled, till user filled all the required fields with valid data(currently its always blue)For Brand Login form
Log In
button is always blue, it should be disabled until user enters the username and passwordFor Influencers SignUp form
For Influencers Login form (same changes as brand login)
Log In
button is always blue, it should be disabled until user enters the username and passwordNOTE - Make sure to write all the validators under
frontend/util/validators.js
so that the same validators can be used at all the required places