Your formula, as it stands, is incorrect, at least is if $E$ means the "expected value under real-world probabilities".
I wrote a blog post explaining the basic rationale behind risk-neutral pricing where you will see that if the Fundamental Theorem of Asset Pricing theorem holds, you can write:
Let $X_t=S_{1,t}-S_{2,t}$
$$e^{-rt} X_t = \mathbb{E}_\mathbb{Q}[e^{-rT} \max(X_T,0) | \mathcal{F}_t]$$
where $\mathbb{E}_\mathbb{Q}$ stands for "expectation under the risk-neutral probability".
From there, what you have to do is to define the risk-neutral dynamics of $S_1$ and $S_2$. When you say that the assets are following a lognormal distribution, I'll assume that they follow are independent Geometric Brownian Motion. In this case, their risk neutral dynamics are well know (see here):
$$dS_{1,t}= r S_{1,t} dt + \sigma_1 S_{1,t} dW^{\mathbb{Q}}_{1,t} $$
$$dS_{2,t}= r S_{2,t} dt + \sigma_2 S_{2,t} dW^{\mathbb{Q}}_{2,t} $$
where is the risk-free rate, and $dW^{\mathbb{Q}}_{i,t}=dW_{i,t}+\frac{\mu_i-r}{\sigma_i}dt$.
So, you have:
$$dX_t=dS_{1,t}-dS_{2,t}=r (S_{1,t} -S_{2,t})dt + + \sigma_1 S_{1,t} dW^{\mathbb{Q}}_{1,t} - dS_{2,t}= r S_{2,t} dt - \sigma_2 S_{2,t} dW^{\mathbb{Q}}_{2,t}$$
and:
$$X_t = e^{-r(T-t)} \mathbb{E}_\mathbb{Q}[\max(X_T,0) | \mathcal{F}_t]= e^{-r(T-t)} \mathbb{E}_\mathbb{Q}[\mathbb{1}_{X_T>0}X_T | \mathcal{F}_t]$$
Then you carry on manipulation the equation, I would suggest changing the numeraire...