validate in var