Write nvm_validate function.
Update the printf messages.