new validation functions
Merge pull request #21 from opentechinstitute/commotion-lua-helpers-pull-3

Branch tested and ready for merging.