HSA contribution

Hello,  I was under the impression HSA contributions (W2 Box 12 Code W, Includes Employer and Employee contributions) are not taxable.   Why did my refund shrink by $1500 immediately when I entered code W  in box 12?