get authentication working