Description:
Currently, the login page allows form submission without any input validation, letting users submit the form even if no credentials are entered. This leads to a poor user experience and potential backend errors.
Expected behavior:
The login form should validate that both username/email and password fields are filled before allowing submission.
If any required field is empty, display a clear validation error message below or near the respective input.
Prevent form submission when validation fails.
Steps to reproduce:
Go to the login page.
Click the login/submit button without entering any data.
Observe that the form submits or no validation message is shown.
Suggested fix:
Add front-end validation for empty input fields on login form.
Show user-friendly error messages when inputs are missing.
Disable the submit button until all required fields have valid data (optional but recommended).
Additional context:
Improving this validation will enhance user experience and reduce unnecessary backend requests.
Description:
Currently, the login page allows form submission without any input validation, letting users submit the form even if no credentials are entered. This leads to a poor user experience and potential backend errors.
Expected behavior:
Steps to reproduce:
Suggested fix:
Additional context:
Improving this validation will enhance user experience and reduce unnecessary backend requests.