Updating jquery validate code to listen for result change.