added simple array validation to save_mongo.php