Fix password reset token check issue