Skip to content

Fix login page validation to prevent submission with empty fields #2

Description

@Itaxh1

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.

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions