dialog hide when validationFail is undefined
dialog hide when validationFail is undefined