Factory reset on locked out iPhone?

I locked out my old iPhone because I forgot my pass code. IIm trying to factory reset it, so I connected to iTunes and got to the step where I clicked to "restore iPhone" then it popped up the next window and i clicked "restore and update." but then after a few minutes it tells me to allow access by clicking it on my iPhone. IIm locked out of my iPhone, which is why I'm resetting it. How do I get past this step?

Go to an apple service they will look into it.