Double /api prepending
Since loginUser from Login.jsx prepends API_ENDPOINT, and it uses fetch from https://gitlab.coko.foundation/pubsweet/pubsweet-client/blob/e2046031586ad205ff1547f64265928e982cd3b4/src/helpers/api.js#L27, which also prepends API_ENDPOINT, the Login component fails/gets a 404 from the API.