using some rvm
added validator wrapper class
now captures invalid elements as errors