Simple variable validation.