reference models id validation

pull request for challenge submission [link](https://www.topcoder.com/challenge-details/30046825/?type=develop)