passing user input state variable to all api calls - tRPC