fixed a couple of validation errors