TBD Improved error handling
API calls to the backend may fail for various reasons.
The application should handle the following situations better:
- Backend not reachable
- JWT token expires
- API calls fail
- Form submission
- Fetching data
- API call timeout (set timeout to 3s)