finished functions, getting authentication error