added a few more validations to spec