- Fixes an issue with login where the default API URL was not always determined correctly
