Fix bug of sending email to reset password