Checking for validations in insert and update code.