fix get authentication token after convert to json data for sending to API