Simplify variable validation

Each base variable type has a base_validation method. validation method can be
defined by the user to add validation checks.