add base64 encoding for authentication