Added dialog box that validates all input fields before disposing.