Added email confirmation with redirect.

We can use dictionary comprehension here.