Clear error message when dialog opens