fixed validation bugs
Merge branch 'master' of https://github.com/asgpng/COS-iw