Added the missing password reset logic.