Added reset email code