added simple validator (with xml)