Fix deprecated use of authenticate_userid() function.