The validation result is in the oncomplete
attribute of PrimeFaces components available by the JavaScript args.validationFailed
variable which returns a boolean
. Just make use of it.
oncomplete="if (!args.validationFailed) { statusDialog.hide(); dlg.hide(); welcome.show(); }"/>