fixed record validations to allow nil