Fixed behavior of the validation errors and notice.