The validation for the registration process is done manually in the backend. This is not only error-prone, we also don't get consisten error reasons in the frontend.
Some errors like duplicate email, which is only "validated" by the database gets no error message at all, so we cannot notify the user in the frontend what is wrong and what he has to to in order to be able to successfully register.
We should use a framework or package for validation that suits our needs and is flexible for future features.
The validation for the registration process is done manually in the backend. This is not only error-prone, we also don't get consisten error reasons in the frontend.
Some errors like duplicate email, which is only "validated" by the database gets no error message at all, so we cannot notify the user in the frontend what is wrong and what he has to to in order to be able to successfully register.
We should use a framework or package for validation that suits our needs and is flexible for future features.