Accurate Inference for Adaptive Linear Models