Variable validation