rewrote model validation script to take in model type from stdin