Set up validation checks for variables.