Add baseUrl for API endpoints
Improve check for missing remember token