implemented POST request to get authentication token