fixes #266 Adding input validation to yaml config parser