Login page component that defines an error state and form submission handler for
user-entered credentials. Form by default handles basic input validation like
missing fields. After passing the initial check, loginValidationTests are ran on the
input strings. If validation fails or an error is thrown during API call, the error
is displayed via a window popup on the front-end. If caught before submission, error
messages are displayed near the form field.
Login page component that defines an error state and form submission handler for user-entered credentials. Form by default handles basic input validation like missing fields. After passing the initial check, loginValidationTests are ran on the input strings. If validation fails or an error is thrown during API call, the error is displayed via a window popup on the front-end. If caught before submission, error messages are displayed near the form field.