fixing a couple of validation errors