dialog hide when validationFail is undefined