Simply the process of checking the required fields username and password in login page

Describe your bug

When login without any value in the input fields “username” and “password”, an API request is sent to check the fields are empty or not. It will utilize some resources.

Steps to reproduce

  1. Go to the login page of the code chef website
  2. Click Login button

Expected result

Instead of sending an API request to check whether the input fields are empty or not, It should be checked in the JavaScript file.

Actual Result

Reported error by sending an API request


Additional info

Browser - Firefox
Browser Version - 112.0
Operation System - Windows