Logging in with a Gmail email ID results in an “incorrect username” error

Bug Description
When a user logs in using a Gmail email ID, the application incorrectly treats the email address as a username and displays an “incorrect username” error, even though the email is valid.

Steps to Reproduce

  1. Open the application.

  2. Click on Login/Sign Up.

  3. Enter a Gmail email ID.

  4. Attempt to log in.

Actual Result
The app displays an error stating that the entered email is an incorrect or invalid username.

Expected Result
The application should accept the Gmail email ID as valid login credentials and successfully authenticate the user, or clearly prompt the user to proceed with the correct login method without showing a username validation error.