added basic validationHelper