Errors are being returned after submitting credentials during the login process. API calls are returning errors 401 & 500.