Writing product validations