Input validation

STOP!
This pull request is dependent upon commotion-lua-helpers integration!

If this issue ( https://github.com/opentechinstitute/luci-commotion/issues/30 ) is closed then this pull request can be merged.

TO TEST: If you wish to test this pull request, please follow the build instructions on the above issue and then add this branch for testing.