revalidator original code with jshint changes.  will be basis for business validation pattern.