Added ability to specify custom error/invalid behavior through CustomErrorNotification