Fix bug that error is displayed if the validation that was registered is disabled.
Fix comments.