Correctly index variable values for validation