This PR integrated frontend with backend login api and posts the user credentials to https://seng-499-backend.up.railway.app/api/login where the response is the account type. Depending if account type is professor or admin the user is navigated to their account page. Incorrect credentials shows an alert message.
This PR integrated frontend with backend login api and posts the user credentials to https://seng-499-backend.up.railway.app/api/login where the response is the account type. Depending if account type is professor or admin the user is navigated to their account page. Incorrect credentials shows an alert message.