Let $\mathcal{T}$ be a topos and $X,Y$ objects in $\mathcal{T}$. Let $\delta_X=\langle 1_X,1_X\rangle\colon X\to X\times X$ be the diagonal map, $\Delta_X\colon X\times X\to\Omega$ the map which classifies $\delta_X$ and $\{\cdot\}\colon X\to\Omega^X$ the exponential transpose of $\Delta_X$. Show that $\{\cdot\}$ is monic.
My attempt:
Let $f,g\colon Y\to X$ such that $\{\cdot\}f=\{\cdot\}g$, and let $H\colon X\times Y\to\Omega$ be the transpose of $\{\cdot\}f=\{\cdot\}g$. I want to show that $H$ classifies both $\langle f, 1_Y\rangle$ and $\langle g, 1_Y\rangle$. I showed that $$t\circ !_Y = t\circ !_X\circ f=\Delta_X\circ\delta_X\circ f=\text{ev}_X\circ\langle f,\{\cdot\}f\rangle=H\circ\langle f, 1_Y\rangle $$ (where $!_X$ is the unique map $X\to 1$) and similarly for $g$. But I'm stuck on showing that this square
is a pullback diagram.

Exponential transposition is a bijection between morphisms $X\times Y\to\Omega$ and morphisms $Y\to\Omega^X$, natural in $Y$. Thus $H\colon X\times Y\to\Omega$ being the exponential transpose of $\{\cdot\}f=\{\cdot\}g$ is the composite $\Delta_X 1_X\times f=\Delta_X1_X\times g$.
In particular, since the subobject of $X\times Y$ classified by $H\colon X\times Y\to\Omega$ is the pullback of the canonical subobject of $\Omega$, by the pullback lemma it is also the pullback along both $1_X\times f,1_X\times g\colon X\times Y\to X\times X$ of pullback along $\Delta_X\colon X\times X\to\Omega$ of the canonical subobject, i.e. of $\delta_X=(1_X,1_X)\colon X\to X\times X$.
Now in general, the pullback of $(1_X,1_X)\colon X\to X\times X$ along $1_X\times h\colon X\times Y\to X\times X$ is $(h,1_Y)$. Indeed, a pair of morphisms $x\colon W\to X$ and $(x',y)\colon W\to X\times Y$ satisfy $(1_X,1_X)\circ x=(h,1_Y)\circ(x'y,)$ if and only if $(x,x)=(h\circ y,x')$, i.e. if and only if $x'=h\circ y$.
Thus, $(f,1_Y),(g,1_Y)\colon Y\to X\times Y$ are both pullbacks of $(1_X,1_X)\colon X\to X\times X$ along $1_X\times f,1_X\times g\colon X\times Y\to X\times X$, and are hence classified by $H=\Delta_X1_X\times f=\Delta_X1_X\times g$.