doc for new validate function