Making sure errors are cleared on fresh dialog box reload