Fix this function call for authenticate.